import { App } from 'vue'
import { initFsscApp } from 'fssc-template'
import './styles/index.scss'
import store from './store/index'
import { router, routes, LayoutComponent } from './router/index'
import components from './components/index'
import LogoPng from './assets/images/logo.png'
import print from 'vue3-print-nb'

initFsscApp({
  env: import.meta.env,
  store,
  router,
  routes,
  layoutComponent: LayoutComponent,
  appState: {
    header: {
      minLogo: LogoPng,
    },
    projectInfo: {
      code: 'shared',
      key: 'ndybqjc6',
      name: '物美费用报销'
    },
    sidebar: {
      enableCollapse: true,
    }
  },

  onAppBeforeMounted(app: App) {
    app.use(components)
    app.use(print);
  },
  requestConfig: {
    source: 'fssc-invoice-web'
  }
})
